API Help
Eplan.EplApi.Gui Namespace / Menu Class / GetPersistentMenuId Method / GetPersistentMenuId(String[]) Method

In This Topic
    GetPersistentMenuId(String[]) Method
    In This Topic
    Gets ID of a persistent EPLAN menu item pointed by the menu path specified as an array of strings.
    Syntax
    public uint GetPersistentMenuId( 
       string[] arrMenuPath
    )
    public:
    uint GetPersistentMenuId( 
       array<String^>^ arrMenuPath
    ) 

    Parameters

    arrMenuPath

    Return Value

    A menu item's ID if the specified item exists. Otherwise, zero is returned.
    Remarks
    * The returned value doesn't change even if the application is restarted. * With this method, you cannot retrieve IDs of custom menu items (i.e. menu items created by API). To get custom menu IDs, please use the GetCustomMenuId method. * With this method, you can only retrieve IDs of menu items that don't have sub-menus.
    See Also